package com.zhao.builder.impl;

import com.zhao.builder.ComputerBuilder;
import com.zhao.objectAdapter.pojo.Computer;
import com.zhao.objectAdapter.pojo.impl.LenovoComputer;

public class LenovoBuilder extends ComputerBuilder {

    Computer computer = new LenovoComputer();

    @Override
    public void assembleBoard(String board) {
        computer.setBoard(board);
    }

    @Override
    public void assembleKeyboard(String keyboard) {
        computer.setKeyboard(keyboard);
    }

    @Override
    public void assembleOs() {
        computer.setOS();
    }

    @Override
    public Computer buildComputer() {
        return computer;
    }
}
